import request from '@/utils/request.js'

/**
 * 获取用户信息
 * @returns
 */
export function getUserInfo (token) {
  return request({
    url: '/user',
    headers: {
      authorization: token
    }
  })
}

/**
 * 获取用户收藏
 * @returns
 */
export function getUserFavorites (token) {
  return request({
    url: '/user/favorites',
    headers: {
      authorization: token
    }
  })
}
